[Iphone]How to get the length of one text string under one specific font with no word wrap.

Posted by semix on Stack Overflow See other posts from Stack Overflow or by semix
Published on 2010-04-25T11:21:36Z Indexed on 2010/04/25 11:23 UTC
Read the original article Hit count: 220

Filed under:

Hi I am new as a Iphone developer. I am wondering how to get the length of a given string under one specific UIFont, WITHOUT line word wrap.

say I have a NSString* lpText = @"a unknon lenght string ..... string" //could be very long and I am using the "Times New Rome" font for rendering...

Any idea? Thanks in advance.

© Stack Overflow or respective owner

Related posts about iphone